<notempty name="car_info">
    <volist name="car_info" id="vo">
    <table class="layui-table">
        <volist name="car_fields" id="car_field">
            <tr>
                <td width="50%">{$car_field}</td>
                <if condition="in_array($key,$img)">
                    <empty name="vo[$key]">
                        <td>{$info['driver_name']}{$car_field}</td>
                        <else/>
                        <php>$thumb = $key.'_thumb';</php>
                        <td class="layer-photos-demo">
                            <img layer-src="{$vo[$key]}" alt="{$info['driver_name']}{$car_field}" src="{$vo[$thumb]?:$vo[$key]}">
                        </td>
                    </empty>
                    <else/>
                    <td width="50%">{$vo[$key]|default="暂无"}</td>
                </if>
            </tr>
        </volist>
    </table>
    </volist>

    <script>
        layui.use(['layer'], function(){
            var layer = layui.layer;
            layer.photos({
                photos: '.layer-photos-demo'
                ,anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机（请注意，3.0之前的版本用shift参数）
                ,tab: function(pic, layero){
                    var str = "<div style='text-align: center'>"+pic.alt+"</div>";
                    layero.prepend(str);
                }
            });
        });
    </script>
    <else/>
    <div style="margin: 0 auto">没有相关信息</div>
</notempty>


